﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ChoDiaOc_HK_WPF.Views.LapBaoBieu {
    /// <summary>
    /// Interaction logic for ThongKeKhachHangTheoDichVu.xaml
    /// </summary>
    public partial class ThongKeKhachHangTheoDichVu : UserControl {
        private List<TKKhachHang> ListKhachHang;
        public ThongKeKhachHangTheoDichVu() {
            InitializeComponent();
            List<string> QC = new List<string>();
            QC.Add("Tờ bướm");
            QC.Add("Quảng cáo bảng");
            QC.Add("Quảng cáo báo");
            cbxLoaiQC.ItemsSource = QC;
        }

        private void comboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            float tyle = 0;
            ListKhachHang = TKKhachHang.getListKHtheoDV(cbxLoaiQC.SelectedValue.ToString(), ref tyle);
            TKDTdataGrid.ItemsSource = ListKhachHang;
            tbxTyLe.Text = tyle.ToString();
        }
    }
}
